package com.example.mallorder.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author guanglin.ma
 * @date 2024-01-08 14:41
 */
@Configuration
public class OrderWebMvcConfigurer implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new OrderHandleInterceptor()).addPathPatterns("/**");
    }
}
